import Mock from 'mockjs'

Mock.mock(process.env.VUE_APP_API_BASE_URL + 'paper/version', 'post', (request) => {


    const { paper_id } = JSON.parse(request.body)
    console.log(paper_id)
    switch (paper_id) {
        case 1: {
            
    return{
        status: {
            code: 0,
            message: "版本获取成功"
          },
          data : [
            {version:"v1",created:"Tue, 14 Dec 2021 23:57:39 GMT"},
            {version:"v2",created:"Tue, 14 Dec 2021 23:57:39 GMT"},
            {version:"v3",created:"Tue, 14 Dec 2021 23:57:39 GMT"},
            
            

        ]
    }}

    case 2: {
            
        return{
            status: {
                code: 0,
                message: "版本获取成功"
              },
              data : [
                {version:"v1",created:"Tue, 14 Dec 2021 23:57:39 GMT"},
                {version:"v2",created:"Tue, 14 Dec 2021 23:57:39 GMT"},
                {version:"v3",created:"Tue, 14 Dec 2021 23:57:39 GMT"},
                {version:"v2",created:"Tue, 14 Dec 2021 23:57:39 GMT"},
                {version:"v3",created:"Tue, 14 Dec 2021 23:57:39 GMT"},
                {version:"v3",created:"Tue, 14 Dec 2021 23:57:39 GMT"},
                {version:"v2",created:"Tue, 14 Dec 2021 23:57:39 GMT"},
                {version:"v3",created:"Tue, 14 Dec 2021 23:57:39 GMT"},
                
               
                
                
    
            ]
        }}
}
})